package com.itheima.service.impl;

import com.itheima.pojo.User;
import com.itheima.service.UserService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @PackageName: com.itheima.service.impl
 * @ClassName: UserServiceImpl
 * @Author: lin
 * @Date: 2020/6/19 18:47
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService {

    public String sayHello() {
        return "hello dubbo";
    }

    public User findUserById(int id) {
        User user = new User(1,"zhangsan","123");
        return user;
    }
}
